<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2017 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: Dean <zxxjjforever@163.com>
// +----------------------------------------------------------------------
namespace api\home\controller;

use think\Db;
use think\Validate;
use cmf\controller\RestBaseController;

class IndexController extends RestBaseController
{
    // api 首页
    public function index()
    {
        // $a = ['hs'=>1,'a'=>20];
        // $b = ['hs'=>12,'ab'=>25];
        // print_r( array_merge($a,$b));
        // exit();
        
        $this->success("恭喜您,API访问成功!", [
            'version' => '1.1.0',
        ]);
    }

    /**
     * [flow 流量统计]
     * @Author   HUI
     * @DateTime 2018-12-04
     * @version  [version]
     * @param    string     $value [description]
     * @return   [type]            [description]
     */
    public function flow($value='')
    {

    }

}
